package org.lh.ibernate.config;


import org.lh.ibernate.core.IDbPool;

//经过测试，本连接池性能为2000次链接，消耗时间为1865ms,常规单一链接的时长为20秒左右
//单例模式
public class DbPoolFactory {

    public static IDbPool iDbPool;

    static {
        try {
            iDbPool = new DbPool();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static IDbPool getInstance(){
        return iDbPool;
    }
}
